package io.eleKing.boot.weather.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.eleKing.boot.framework.page.Paging;
import io.eleKing.boot.weather.dto.WeatherRealDataDto;
import io.eleKing.boot.weather.entity.WeatherRealData;
import io.eleKing.boot.weather.query.WeatherRealDataQuery;
import io.eleKing.boot.weather.vo.WeatherRealDataVo;


/**
 *  服务接口
 *
 * @author eleKing
 * @since 2025-04-15
 */
public interface WeatherRealDataService extends IService<WeatherRealData> {

    /**
     * 添加
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean addWeatherRealData(WeatherRealDataDto dto);

    /**
     * 修改
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean updateWeatherRealData(WeatherRealDataDto dto);

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteWeatherRealData(Long id);

    /**
     * 详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    WeatherRealDataVo getWeatherRealDataById(Long id);

    /**
     * 分页列表
     *
     * @param query
     * @return
     * @throws Exception
     */
    Paging<WeatherRealDataVo> getWeatherRealDataPage(WeatherRealDataQuery query);

}
